<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品迁入引导首页</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="/public/element-ui@2.9.1/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="../cloud/yunconfig.css">
</head>

<body style="background-color: #efefef">
<div id="main-block" v-cloak>
    <div style="padding: 10px;">
        <div _funCode="operationsSet">

            <el-tabs v-model="type" type="border-card" @tab-click="handleClick">
                <el-tab-pane label="用户注册选项" name="user">
                    <el-form :model="userForm" :rules="rulesUser" ref="userForm" label-width="180px" class="demo-ruleForm">
                        <el-form-item label="密码复杂度" prop="passLevel">
                            <el-select v-model="userForm.passLevel" placeholder="请选择活动区域">
                                <el-option label="中等（字母+数字）" value="2"></el-option>
                                <el-option label="安全（字母大写+字母小写+数字+特殊字符）" value="1"></el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="图片验证码">
                            <el-checkbox v-model="userForm.randCode"></el-checkbox>
                        </el-form-item>
                        <el-form-item label="禁止注册列表">
                            <el-input type="textarea" v-model="userForm.forbid" style="width: 300px;" :rows="6"></el-input>
                        </el-form-item>
                        <el-form-item label="可选注册项" prop="delivery">
                            <el-table
                                    :data="userForm.registerItem"
                                    border
                                    style="width: 100%">
                                <el-table-column
                                        prop="name"
                                        label="项目名称">
                                </el-table-column>
                                <el-table-column
                                        prop="name"
                                        label="显示"
                                        width="180">
                                    <template scope="scope">
                                        <el-checkbox v-model="scope.row.show"></el-checkbox>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        prop="address"
                                        label="必填"
                                        width="180">
                                    <template scope="scope">
                                        <el-checkbox v-model="scope.row.must"></el-checkbox>
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        prop="auth"
                                        label="需要认证"
                                        width="180">
                                    <template scope="scope">
                                        <el-checkbox v-if="scope.row.code=='mobile' || scope.row.code=='email'" v-model="scope.row.auth"></el-checkbox>
                                    </template>
                                </el-table-column>
                            </el-table>
                        </el-form-item>
                        <el-form-item>
                            <el-button type="primary" @click="saveUser">保存修改</el-button>
                        </el-form-item>
                    </el-form>
                </el-tab-pane>
            </el-tabs>
        </div>
    </div>
</div>
</body>
<script src="../../public/main.js"></script>
<script language="JavaScript">
    document.write('<link rel="stylesheet" href="'+realPath+'/public/fonts/iconfont.css">');
</script>
<script src="../../public/right.js"></script>
<script src="operations.js"></script>
</html>
